<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8'); 
$this->headTitle($this->title);
echo $this->doctype();
?>  
<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <?php echo $this->headMeta(); ?>
        <?php echo $this->headTitle(); ?>
        
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->urlbase;?>/public/media/images/icon.png">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        <?php echo $this->headLink() ?>
        <script>
           var URLSITE     = '<?php echo $this->urlbase ?>';
           var URLBASE = '<?php echo $this->urlmodulo ?>';
           var CONTROL = '<?php echo $this->controller; ?>';
        </script>
        <?php echo $this->headScript() ?>
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body role="document">
        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <div class="container">
                
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="<?php echo $this->urlbase.'/'.$this->modulo; ?>">Painel</a>
                </div>
                
                <div id="navbar" class="navbar-collapse collapse">
                    <?php echo $this->partial('menu.phtml', array('modulo'=>$this->modulo, 'controller'=>$this->controller)); ?>   
                </div>
                
            </div>
        </nav>
        
        <div class="container gw-container">
            <?php echo $this->layout()->content; ?>

        </div>
        
        <footer class="footer">
            <div class="container">
                  <?php echo $this->partial('rodape_emp.phtml', array('urlbase'=>$this->urlbase)); ?>
            </div>
        </footer>    
    </body>
</html>